<?php
/**
 * Created by PhpStorm.
 * User: chenx
 * Date: 18-5-2
 * Time: 下午7:15
 */

namespace common\models;


use yii\db\ActiveRecord;

class Phone extends ActiveRecord
{
    public static function tableName()
    {
        return 'phone';
    }

    public function rules(){
        return[
            [['id'],'integer'],
            [['phone','phone_md5'],'string']
        ];

    }

    public function attributeLabels()
    {
        return[
            'id'=>'id',
            'phone'=>'phone',
            'phone_md5'=>'phone_md5'
        ];
    }

}